package com.hjq.mallorder.feign;

import com.hjq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @auther HJQ
 */
@FeignClient("mall-product")
public interface ProductFeign {
    @RequestMapping("mallproduct/spuinfo/getSpuInfo")
     R getSpuInfoBySkuId(@RequestParam("skuId") Long skuId);
    @RequestMapping("mallproduct/skuinfo/info/{skuId}")
    //@RequiresPermissions("mallproduct:skuinfo:info")
    R info(@PathVariable("skuId") Long skuId);
}
